home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-07-26 | 1.5 KB | 47 lines | [TEXT/R*ch] |
- OBJS= alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o headers.o mark.o obj_map.o pcr_interface.o blacklst.o finalize.o new_hblk.o real_malloc.o dynamic_load.o dbg_mlc.o malloc.o stubborn.o
-
- CSRCS= reclaim.c allchblk.c misc.c alloc.c mach_dep.c os_dep.c mark_rts.c headers.c mark.c obj_map.c pcr_interface.c blacklst.c finalize.c new_hblk.c real_malloc.c dynamic_load.c debug_mlc.c malloc.c stubborn.c
-
- SHELL= /bin/sh
-
- # Fix to point to local pcr installation directory.
- PCRDIR= /project/ppcr/dev
- CC= gcc
- CFLAGS= -g -DPCR -I$(PCRDIR) -I$(PCRDIR)/ansi -I$(PCRDIR)/posix
-
- # We assume that mach_dep.o has already been built by top level makefile. It doesn't
- # care about pcr vs UNIX, and we don't want to repeat that cruft.
-
- default: gc.o
-
- all: gc.o test.o gcpcr
-
- gcpcr: gc.o test.o $(PCRDIR)/base/pcr.o $(PCRDIR)/base/PCR_BaseMain.o
- $(CC) -o gcpcr $(PCRDIR)/base/pcr.o $(PCRDIR)/base/PCR_BaseMain.o gc.o test.o -ldl
-
- gc.o: $(OBJS)
- -ld -r -o gc.o $(OBJS)
-
- #
- # Dependency construction
- #
- # NOTE: the makefile must include "# DO NOT DELETE THIS LINE" after the
- # last target. "make depend" will replace everything following that line
- # by a newly-constructed list of dependencies.
- #
- depend: $(CSRCS)
- rm -f makedep eddep ; \
- $(CC) -M $(CFLAGS) $(CSRCS) \
- | sed -e '/:$$/d' > makedep ; \
- echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep ; \
- echo '$$r makedep' >>eddep ; \
- echo 'w' >>eddep ; \
- cp PCR-Makefile PCR-Makefile.bak ; \
- ex - PCR-Makefile < eddep ; \
- rm -f eddep makedep
- touch depend
-
- # DO NOT DELETE THIS LINE
-
-
-